package com.imax.emap.mapProvider
{
	import com.imax.emap.projection.IProjection;
	import com.imax.emap.projection.MercatorProjection;

	public class GoogleDituProvider implements IMapProvider
	{
		private var projection:IProjection;
		
		public function GoogleDituProvider()
		{
			this.projection = new MercatorProjection();
		}

		public function getTileSize():Number
		{
			return 256;
		}
		
		public function getProjection():IProjection
		{
			return projection;
		}
		
		
		public function getTileURL(x:int, y:int, zoom:Number):String
		{
			return "http://servicetile.mapabc.com/googlechina/maptile?v=w2&hl=zh-CN" + 
			"&x=" + x + "&y=" + y + "&zoom=" + (17-zoom)+"&s=G";
		}
		
		public function getMaxZoom():int{
			return 17;
		}
		
		public function getMinZoom():int{
			return 0
		}
		
		public function toString():String
		{
			return "GoogleDitu";
		}
		
	}
}